<?php
	namespace AppBundle\Entity;

	use Doctrine\ORM\Mapping as ORM;
    use Doctrine\Common\Collections\ArrayCollection;

	/**
	 * @ORM\Entity;
	 * @ORM\Table(name="grade")
	 */
	class Grade{
		/**
		 * @ORM\Column(type="integer")
		 * @ORM\Id
		 * @ORM\GeneratedValue(strategy="AUTO")
		 * @var [type]
		 */
		private $id;

		/**
		 * @ORM\Column(type="string",length=32)
		 * @var [type]
		 */
		private $name;

        private $students;

    public function __construct(){
        $this->students = new ArrayCollection;
    }

	
    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     *
     * @return Grade
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
}
